package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 礼品卡对象 card
 *
 * @author ruoyi
 * @date 2024-02-21
 */
public class Card extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 卡片分类id */
    @Excel(name = "卡片分类id")
    private Long cardSetId;

    /** 卡号 */
    @Excel(name = "卡号")
    private String cardNo;

    /** 卡密 */
    @Excel(name = "卡密")
    private String password;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 二维码 */
    @Excel(name = "图片", cellType = Excel.ColumnType.IMAGE)
    private String url;

    /** 卡名 */
    @Excel(name = "礼品卡")
    private String name;

    /** 市场价 */
    @Excel(name = "市场价")
    private BigDecimal price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCardSetId(Long cardSetId)
    {
        this.cardSetId = cardSetId;
    }

    public Long getCardSetId()
    {
        return cardSetId;
    }
    public void setCardNo(String cardNo)
    {
        this.cardNo = cardNo;
    }

    public String getCardNo()
    {
        return cardNo;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("cardSetId", getCardSetId())
                .append("cardNo", getCardNo())
                .append("password", getPassword())
                .append("balance", getBalance())
                .append("url", getUrl())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
